﻿using Basic.FormRemoteModel;
using Basic.FormRemoteModel.Control.Model;
using SqlSugar;

namespace Basic.FormModel.DB
{
    [SqlSugar.SugarTable("QueryControl")]
    public class DBQueryControl
    {
        [SugarColumn(IsPrimaryKey = true)]
        public long Id
        {
            get;
            set;
        }
        public string Name
        {
            get;
            set;
        }
        public string Code
        {
            get;
            set;
        }
        /// <summary>
        /// 控件配置
        /// </summary>
        [SugarColumn(IsJson = true)]
        public ControlConfig[] Config { get; set; }

        public LayoutLocation Location { get; set; }

        public QueryControlStatus Status { get; set; }

        [SugarColumn(IsJson = true)]
        public FormColumnFuncType[] FuncType { get; set; }

        [SugarColumn(IsJson = true)]
        public PhyTableDataType[] DataType { get; set; }

        [SugarColumn(IsJson = true)]
        public QueryFilterMode[] FilterMode { get; set; }

        [SugarColumn(IsJson = true)]
        public PhyColShowMode[] ShowMode { get; set; }

        public bool IsMultiple { get; set; }
    }
}
